<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>绑定到列表</title>
  <link href="http://cdn.bootcss.com/zui/1.5.0/css/zui.min.css" rel="stylesheet">
</head>
<body>
<ul class="nav nav-tabs">
  <li class="active"><a href="###" data-target="#tab2Content1" data-toggle="tab">标签1</a></li>
  <li><a href="###" data-target="#tab2Content2" data-toggle="tab">标签2</a></li>
  <li><a href="###" data-target="#tab2Content3" data-toggle="tab">标签3</a></li>
</ul>
<div class="tab-content">
  <div class="tab-pane fade active in" id="tab2Content1">
    <div class="list-group"  v-for="todo in todos">
      <a href="#" class="list-group-item">{{ todo.text }}</a>
    </div>
  </div>
  <div class="tab-pane fade" id="tab2Content2">
    <p>标签2的内容。</p>
  </div>
  <div class="tab-pane fade" id="tab2Content3">
    <p>这是标签3的内容。</p>
  </div>
</div>
<script src="http://cdn.bootcss.com/vue/2.2.1/vue.js"></script>
<script>

  new Vue({
    el: '#tab2Content1',
    data: {
      todos: [
        {text: '我爱学习，学生让我快乐'},
        {text: '蓝瘦香菇'},
        {text: '春风十里扬州路'}
      ]
    }
  });
</script>
</body>
</html>
